import redis
# flushdb
class RedisHelper:
    def __init__(self):

        self.r = redis.StrictRedis(host='localhost', port=6379, db=0)

    def get(self,name):
        return self.r.get(name)
    def set(self,name,value):
        self.r.set(name, value)